// 需要改样式的话，注意避免对原计算公式影响
.calculation-formula-modal-special {

  .base-modal-body {
    padding: 20px;
  }

  .calculation-formula-operators,
  .calculation-formula-content,
  .calculation-formula-fields {
    margin-top: 20px;
    color: $text-color-regular;

    .calculation-formula-tag {
      border: 1px solid $color-border-l2;
      border-radius: $border-radius-base;
      cursor: pointer;

      display: inline-block;
      margin: 0 0 6px 10px;
      padding: 1px 8px;

      text-align: center;
      font-size: $font-size-small;
      user-select: none;

      &:not(.operator) {
        min-width: 30px;
      }

      &.delete {
        color: $color-danger;
        border-color: rgba(245, 108, 108, 0.2) !important;
        background-color: rgba(245, 108, 108, 0.2) !important;
      }
    }
  }

  .calculation-formula-operators,
  .calculation-formula-fields {
    .calculation-formula-tag:hover {
      background-color: $bg-color-l3;
    }

    .icon-question {
      margin-right: 4px;
    }
  }

  .calculation-formula-operators {
    padding-left: 16px;
  }

  .calculation-formula-block {
    // padding: 12px;
    // margin-bottom: 10px;
    .calculation-formula-content {
      display: flex;
      align-items: flex-start;
      margin-top: 0px;
      border: 1px solid $color-border-l2;
      border-radius: $button-radius-base;
      margin-top: 12px;

      .calculation-formula-title {
        min-width: 66px;
      }
      .codemirror-edit{
        flex: 1;
        max-width: 580px
      }

      .calculation-formula-tag {
        margin: 0 0 6px 6px;

        &.operator {
          border-color: #fff;
          padding: 0px;
        }

        &:not(.operator) {
          background-color: $bg-color-l3;
        }
      }
    }

    .calculation-formula-action {
      padding-top: 12px;
      text-align: right;

      .formula-clear-btn {
        font-size: $font-size-small;
        color: $color-danger;
        margin-left: 6px;
      }

      .iconfont {
        font-size: $font-size-large;
        color: $text-color-regular;

        position: relative;
        top: 1px;
      }

      .formula-clear-btn,
      .formula-remove-btn {
        cursor: pointer;
        user-select: none;
      }
    }

    .error {
      border: 1px solid $color-danger;
    }
  }

  .calculation-formula-error {
    margin-top: 8px;
    color: $color-danger;
    font-size: $font-size-small;
  }

  .base-modal-footer {
    text-align: right;
  }

}
.calculation-formula-mid{
  display:flex;
  justify-content: space-between;
  .calculation-formula-mid__box{
    flex: 1;
    min-height: 200px;
    max-height: 210px;
    border: 1px solid $color-border-l2;
    border-radius: $border-radius-base;
    margin-top: 20px;
    box-sizing: border-box;
    padding:10px 0 10px 6px;
    overflow-y: hidden;
    &.calculation-formula-intro{
      padding-right: 6px;
      word-wrap: break-word;
    }
    &.calculation-formula-func{
      //padding-right: 6px;
    }
    .check-list{
      display: flex;
      flex-direction: column;
      margin-top: 6px;
      max-height: 172px;
      padding-right: 6px;
      overflow-y: auto;
      &-item{
        //display: inline;
        margin-left: 0;
        flex-grow:0;
        flex-shrink:0;
        display: inline-flex;
        justify-content: space-between;
        .calculation-formula-tag{
          border: 1px solid $color-border-l2;
          border-radius: $border-radius-base;
          cursor: pointer;

          display: inline-block;
          margin: 0 0 6px 10px;
          padding: 1px 8px;

          //text-align: center;
          font-size: $font-size-small;
          user-select: none;
          text-align: left;
          max-width: 90px;
          overflow:hidden;
          white-space: nowrap;
          text-overflow: ellipsis;
          -o-text-overflow:ellipsis;
          &:not(.operator) {
            min-width: 30px;
          }

          &.delete {
            color: $color-danger;
            border-color: rgba(245, 108, 108, 0.2) !important;
            background-color: rgba(245, 108, 108, 0.2) !important;
          }
         &:hover {
            background-color: $bg-color-l3;
          }
        }
        .el-tag{
          height: 21px;
          line-height: 21px;
          margin-right: 4px;
        }
      }
    }
    &.calculation-formula-fields{
      // margin-top: 0;
      margin-right: 20px;

    }
    &.calculation-formula-func{
      margin-right: 20px;
    }
  }
  .calculation-formula-mid_title {
    width: calc(100% - 10px);
    white-space: nowrap;
    text-overflow: ellipsis;
    overflow: hidden;
  }
}
.mg-0{
  margin: 0 !important;
}
